home *** CD-ROM | disk | FTP | other *** search
/ Treccani Italiana Di Scienze Lettere Ed Arti / [Enciclopedia] Treccani Italiana di scienze lettere ed arti.iso / mac / data / menu_dvd.swf / scripts / __Packages / mx / styles / CSSStyleDeclaration.as next >
Text File  |  2007-11-07  |  1KB  |  51 lines

  1. class mx.styles.CSSStyleDeclaration
  2. {
  3.    static var classConstructed = mx.styles.CSSStyleDeclaration.classConstruct();
  4.    static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
  5.    function CSSStyleDeclaration()
  6.    {
  7.    }
  8.    function __getTextFormat(tf, bAll)
  9.    {
  10.       var bUndefined = false;
  11.       if(this._tf != undefined)
  12.       {
  13.          var j;
  14.          for(j in mx.styles.StyleManager.TextFormatStyleProps)
  15.          {
  16.             if(bAll || mx.styles.StyleManager.TextFormatStyleProps[j])
  17.             {
  18.                if(tf[j] == undefined)
  19.                {
  20.                   var v = this._tf[j];
  21.                   if(v != undefined)
  22.                   {
  23.                      tf[j] = v;
  24.                   }
  25.                   else
  26.                   {
  27.                      bUndefined = true;
  28.                   }
  29.                }
  30.             }
  31.          }
  32.       }
  33.       else
  34.       {
  35.          bUndefined = true;
  36.       }
  37.       return bUndefined;
  38.    }
  39.    function getStyle(styleProp)
  40.    {
  41.       var val = this[styleProp];
  42.       var c = mx.styles.StyleManager.getColorName(val);
  43.       return c != undefined ? c : val;
  44.    }
  45.    static function classConstruct()
  46.    {
  47.       mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype,true);
  48.       return true;
  49.    }
  50. }
  51.